import React from 'react';
import ReactDom from 'react-dom';

import {Provider} from 'react-redux';
import {createStore} from 'redux';
import updater from './updater';
import uuid from 'uuid';
import MenuList from './MenuList';

const menuList = [
    {id: uuid(), name: '首页', path: '',selected:true},
    {id: uuid(), name: '系统管理', path: ''},
    {id: uuid(), name: '关单管理', path: ''},
    {id: uuid(), name: '发票管理', path: ''},
    {id: uuid(), name: '智能申报', path: ''},
    {id: uuid(), name: '备案管理', path: ''}
];
const appStore = createStore(updater,{list:menuList,list2:menuList.slice(0,1)});

ReactDom.render(
    <Provider store={appStore}>
        <MenuList></MenuList>
    </Provider>
, document.querySelector('.testApp'));
